###
 # @Company: TWL
 # @Author: xue jian
 # @Email: xuejian@kanzhun.com
 # @Date: 2020-07-22 14:53:38
### 
#!/sh/bin

for_xc_train_data() {
    datebeg=$1
    dateend=$2
    beg_s=`date -d "$datebeg" +%s`
    end_s=`date -d "$dateend" +%s`
    while [ "$beg_s" -le "$end_s" ]
    do
        tmp=`date -d @$beg_s +"%Y-%m-%d"`
        echo $tmp
        nohup sh train_data.sh $tmp >> train_data_result 2>&1 &
        beg_s=$((beg_s+86400))
    done
}

for_xc_train_data 2020-07-06 2020-07-14